package com.wiser.androidmodule;

import android.content.Intent;
import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.wiser.library.base.WISERActivity;
import com.wiser.library.base.WISERBuilder;

import butterknife.OnClick;

public class MainActivity extends WISERActivity {

    @Override
    protected WISERBuilder build(WISERBuilder wiserBuilder) {
        wiserBuilder.layoutId(R.layout.activity_main);
        return wiserBuilder;
    }

    @Override
    protected void initData(Intent intent) {

    }

    @OnClick(value = {R.id.btn_one_module, R.id.btn_two_module})
    public void onClickView(View view) {
        switch (view.getId()) {
            case R.id.btn_one_module:
                ARouter.getInstance().build("/OneModule", "one").navigation();
                break;
            case R.id.btn_two_module:
                ARouter.getInstance().build("/two/TwoModule").navigation();
                break;
        }
    }

}
